﻿<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<html>
<head>
<title>Login Page</title>
<link rel="stylesheet" type="text/css"
	href="<c:url value='/resources/css/style.css' />" media="all" />
<style>
.errorblock {
	color: #ff0000;
	background-color: #ffEEEE;
	border: 3px solid #ff0000;
	padding: 8px;
	margin: 16px;
}
</style>
</head>
<body onload='document.f.j_username.focus();'>
	<c:url var="index" value="/" />



	<div id="art-page-background-middle-texture">
		<!-- Shell -->
		<div class="shell">

			<!-- Header -->
			<div id="header"></div>
			<!-- End Header -->

			<!-- Navigation -->
			<div class="bgMenu">
				<div id="nav">
					<ul>
						<li><a class="active" href="${index}">หน้าแรก</a></li>
						<li><a href="#">วิธีการชำระเงิน</a></li>
						<li><a href="#">ติดต่อเรา</a></li>
						<li><a href="welcome.html">Admin</a></li>
					</ul>
				</div>
			</div>
			<!-- End Navigation -->

			<!-- Line -->
			<div id="line"></div>
			<!-- End Line -->

			<!-- Content -->
			<div class="shellContent">
				<div id="content" style="height: 200px">

					<!-- Main -->

					<form name='f' action="<c:url value='j_spring_security_check' />"
						method='POST'>

						<table class="login-table">
							<tr>
								<td>User:</td>
								<td><input type='text' name='j_username' value=''>
								</td>
							</tr>
							<tr>
								<td>Password:</td>
								<td><input type='password' name='j_password' /></td>
							</tr>
							<tr>
								<td></td>
								<td><input name="submit" type="submit" value="submit" /><input
									name="reset" type="reset" /></td>
							</tr>

						</table>

					</form>

					<c:if test="${not empty error}">
						<div class="errorblock">
							Your login attempt was not successful, try again.<br /> Caused :
							${sessionScope["SPRING_SECURITY_LAST_EXCEPTION"].message}
						</div>
					</c:if>

				</div>

			</div>
		</div>
		<!-- End Content -->
		<!-- End shellContent -->

		<!-- Footer -->
		<div class="shell">
			<div id="footer">
				<p>
					&copy; Sitename.com. Design by <a
						href="http://manopservice.blogspot.com/">manopservice.blogspot.com</a>
				</p>
			</div>
		</div>
		<!-- End Footer -->
	</div>
	<!-- End Shell -->
</body>
</html>